package org.gardenXml.diList;
//部门类

import java.util.List;

public class Dept {
    private String Dname;
private List<Emp> Ems;
    public String getDname() {
        return Dname;
    }

    public void setDname(String dname) {
        Dname = dname;
    }


    public List<Emp> getEms() {
        return Ems;
    }

    public void setEms(List<Emp> ems) {
        Ems = ems;
    }

    public   void info(){
    System.out.println("部门类"+Dname);
        System.out.println(Ems.size());
    for (Emp emp: Ems){
        System.out.println(emp.geteName());
    }
}
}
